{%include file="index.header.tpl.php"%}
{%include file="index.left.tpl.php"%}
  <!--主要内容开始-->
  <div class="content-wrapper">
    <!-- Content Header (Page header) -->
    <!-- Main content -->
    <section class="content">
      <div class="row">
        <div class="col-md-12">
          <div class="box box-primary">
            <div class="box-header with-border">
              <span class="fa fa-edit" style="float:left; font-size:18px; margin-top:2px; color:#3c8dbc;"></span>
              <h3 class="box-title">布置作业</h3>
              <a href="index.php?a=homework.add&staff_id={%$staff_id%}" class="btn btn-primary btn-sm" style="float:right;">新 增</a>
            </div>
             <div class="box-body">
                <table class="table table-bordered table-striped">
                    <tr>
                        <td>班级</td>
                        <td>学科</td>
                        <td>日期</td>
                        <td>作业内容</td>
                        <td width="100">操作</td>
                    </tr>
                   {%foreach from=$homework_lists key=key item=value%}
                     <tr>
                        <td><a href="index.php?a=homework.info&homework_id={%$value.homework_id%}">{%$value.class_name%}</a></td>
                        <td>{%$value.subject_name%}</td>
                        <td>{%$value.homework_date%}</td>
                        <td>{%$value.homework_content%}</td>
                        <td>
                            <a href="index.php?a=homework.update&homework_id={%$value.homework_id%}" class="btn btn-warning btn-xs">修 改</a>
                        </td>
                    </tr>
               {%/foreach%}
                </table>
          </div>
          <!-- /. box body-->
             <div class="box-footer">
              {%$page%}
              </div>
          </div>
	    </div><!--box box-primary-->
        <!-- /.col -->
      </div>
      <!-- /.row -->
    </section>
    <!-- /.content -->
  </div>
  <!-- /.content-wrapper -->
 {%include file="index.footer.tpl.php"%}
